package org.example.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生基本信息表
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("students")
public class Students implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学生唯一ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联的用户ID (用于学生登录)
     */
    private Long userId;

    /**
     * 学号
     */
    private String studentNumber;

    /**
     * 学生姓名
     */
    private String fullName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 出生日期
     */
    private LocalDate dateOfBirth;

    /**
     * 所在班级ID
     */
    private Integer classId;

    /**
     * 入学日期
     */
    private LocalDate enrollmentDate;

    /**
     * 学籍状态
     */
    private String status;

    private LocalDateTime createdAt;


}
